From: Marvin Scholz Date: Tue, 1 Oct 2024 00:57:11 +0000 (+0200) Subject: fftools: do not access out of bounds filtergraph X-Git-Tag: archive/raspbian/7%8.1-3+rpi1~1^2^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/success//%22mailto:kde%40ewsoftware.de/%22/%22http:/www.example.com/cgi/success/%22mailto:kde%40ewsoftware.de/%22?a=commitdiff_plain;h=0b6a76b8e0d0c2e3cba24c29c7cb5f772054266b;p=ffmpeg.git fftools: do not access out of bounds filtergraph The log message was logged for `filtergraphs[j]` which would cause a heap buffer overflow in certain circumstances. Correctly it should be logged for the current filtergraph, so just use `fg` here. (cherry picked from commit 5beeb3a1f97d8f6d4076fe83aaf5e2e5871f945e) Gbp-Pq: Name 0005-fftools-do-not-access-out-of-bounds-filtergraph.patch --- diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 7ec328e0..2f2b2979 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1408,7 +1408,7 @@ int fg_finalise_bindings(void) for (int j = 0; j < fg->nb_outputs; j++) { OutputFilter *output = fg->outputs[j]; if (!output->bound) { - av_log(filtergraphs[j], AV_LOG_FATAL, + av_log(fg, AV_LOG_FATAL, "Filter %s has an unconnected output\n", output->name); return AVERROR(EINVAL); }